package cn.ichiva.puppet.example.base.p2;

import javafx.application.Application;
import javafx.fxml.PuppetComponentLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;


public class L1P2ComponentProps2 extends Application {
    @Override
    public void start(Stage stage) throws Exception {
        TodoManager reactComponent = new TodoManager();
        Scene scene = PuppetComponentLoader.loadScene(reactComponent,320,600);
        stage.setScene(scene);
        stage.setTitle("复杂的传参,方法委托,让数据拥有者决定UI的更新");
        stage.show();
    }
}
